package com.xjl.design.pattern.structural.decorator.v1;

/**
 * 加一个鸡蛋加一个香肠的价格
 */
public class BettercakeWithEggSausage extends BettercakeWithEgg{

    @Override
    public String getDesc() {
        return super.getDesc() + "加一根肠";
    }

    @Override
    public int cost() {
        return super.cost() + 2;
    }
}
